#ifndef __UTILS_H__
#define __UTILS_H__

#include <string>
#include <list>

#include "crossplatform.h"

std::wstring Utf8To16(const char *utf8);
std::wstring Utf8To16(const std::string& utf8);

std::string Utf16To8(const wchar_t *utf16);

int ConnectToHost(const char *name, const char *port);
int ConnectToHostList(std::list<std::string>& list, const char *port);

#endif
